package cn.htcode.mybatisplus01.domain;

import cn.htcode.mybatisplus01.enums.SexEnum;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * @author: Mr_he
 * @BelongsProject:homework
 * @BelongsPackage:cn.htcode.mybatisplus01.domain
 * @CreateTime:2024-12-25
 * @Version:1.0
 */
@Data
@TableName(value = "user")
public class User {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private Integer age;
    private String email;

    @TableLogic
//    @TableField(value = "deleted")
    private int deleted;
    private SexEnum sex;
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;
}
